package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.GoodsSpec;
import com.ecoolex.chinadutyfree.retailer.entity.GoodsSpecExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsSpecMapper {
    long countByExample(GoodsSpecExample example);

    int deleteByExample(GoodsSpecExample example);

    int deleteByPrimaryKey(Integer specId);

    int insert(GoodsSpec record);

    int insertSelective(@Param("record") GoodsSpec record, @Param("selective") GoodsSpec.Column ... selective);

    GoodsSpec selectOneByExample(GoodsSpecExample example);

    List<GoodsSpec> selectByExample(GoodsSpecExample example);

    GoodsSpec selectByPrimaryKey(Integer specId);

    GoodsSpec selectByPrimaryKeyWithLogicalDelete(@Param("specId") Integer specId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsSpec record, @Param("example") GoodsSpecExample example, @Param("selective") GoodsSpec.Column ... selective);

    int updateByExample(@Param("record") GoodsSpec record, @Param("example") GoodsSpecExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsSpec record, @Param("selective") GoodsSpec.Column ... selective);

    int updateByPrimaryKey(GoodsSpec record);

    int batchInsert(@Param("list") List<GoodsSpec> list);

    int batchInsertSelective(@Param("list") List<GoodsSpec> list, @Param("selective") GoodsSpec.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsSpecExample example);

    int logicalDeleteByPrimaryKey(Integer specId);
}